package com.evzgaga.evzrecon.plugins;

import com.evzgaga.evzrecon.event.ServerCallbackEvent;
import com.evzgaga.evzrecon.annotations.CallbackHandler;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author Bastien
 */
public class ChatLoggingPlugin {

    @CallbackHandler(callbacks="TrackMania.PlayerChat")
    public void handlePlayerChatEvent(ServerCallbackEvent event) {
        Logger.getLogger(getClass().getName()).log(Level.INFO, "[{0}] {1}", new Object[] {
            event.callbackParams.get(1), event.callbackParams.get(2)
        });
    }
}
